import request from '@/utils/request'
import { technicalApiUrl } from '../config'

export default {
  list() {
    return request({
      url: technicalApiUrl + '/basic_information',
      method: 'get'
    })
  },
  findListByDetails(params) {
    return request({
      url: technicalApiUrl + '/basic_information/information',
      method: 'get',
      params
    })
  },
  add(data) {
    return request({
      url: technicalApiUrl + '/basic_information/create',
      method: 'post',
      data
    })
  },
  edit(data) {
    return request({
      url: technicalApiUrl + '/basic_information/update',
      method: 'post',
      data
    })
  },
  del(params) {
    return request({
      url: technicalApiUrl + '/basic_information/del',
      method: 'post',
      params
    })
  },
  addDetail(data) {
    return request({
      url: technicalApiUrl + '/basic_information/basic_index/save',
      method: 'post',
      data
    })
  },
  editDetail(data) {
    return request({
      url: technicalApiUrl + '/basic_information/basic_index/update',
      method: 'post',
      data
    })
  },
  delDetail(params) {
    return request({
      url: technicalApiUrl + '/basic_information/basic_index/del',
      method: 'post',
      params
    })
  }
}
